import { request } from "../utils/request";

//显示查询

export const fetchUserList = (data) => {
  return request.post('/api/user/listPage',data)
}


//修改数据
export const updateUser = (data) => {
  return request.post('/api/user/update', data)
}

//删除数据
export const deleteUser = (id) => {
  return request.post(`/api/user/delete/${id}`,id)
}

//新增用户
export const addUser =(data)=>{
  return request.post('/api/save',data)
}